-- GENERATED SPELL FOR [Cabal Skirmisher] --


function spell0_21661(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21661', 576, 1)
end

function spell1_21661(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_21661', 511, 1)
end

function Sorts_21661(pUnit, Event)
local choix_sorts_21661 = math.random(0, 1)
if choix_sorts_21661 == 0 then
pUnit:RegisterEvent('spell0_21661', 1, 1)
end
if choix_sorts_21661 == 1 then
pUnit:RegisterEvent('spell1_21661', 1, 1)
end
end

function mob21661_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21661', math.random(1500, 3000), 1)
end

function mob21661_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21661_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21661_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21661, 1, 'mob21661_Action')
RegisterUnitEvent(21661, 2, 'mob21661_Leave')
RegisterUnitEvent(21661, 3, 'mob21661_Kill')
RegisterUnitEvent(21661, 4, 'mob21661_Die')
